package net.kesumu.yushabuserver.dao;

import java.util.ArrayList;

import net.kesumu.yushabuserver.entity.FriendRequest;

public interface IFriendRequestDao {
    boolean newFriendRequest(FriendRequest friendRequest);
    FriendRequest getFriendRequestByUserIdAndFriendId(int userId, int friendId);
    ArrayList<FriendRequest> getFriendRequestsByFriendId(int friendId);
    boolean acceptFriendRequest(int friendRequestId, int friendId, int userId);
    boolean refuseFriendRequest(int friendRequestId);
    int getUnreadedFriendRequestNumberByFriendId(int friendId);
}
